#ifndef UGAME_EVENT_NOTIFIER_H
#define UGAME_EVENT_NOTIFIER_H

#include "cocos2d.h"
#include "UGEvent.h"
#include "UGEventHandler.h"

USING_NS_CC;

namespace ugame {
    class UGEventNotifier : public Ref{
        UG_PROPERTY_GETTER(__Array*, eventList, EventList);
        UG_PROPERTY_GETTER(__Array*, eventHandlerList, EventHandlerList);
    public:
        UGEventNotifier();
        virtual ~UGEventNotifier();
        
        virtual void registerHandler(UGEventHandler* handler);
        virtual void notifyEvent(UGEvent* event);
    };    
}

#endif
